<%@ page import="filter.SignInFilter" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>考试系统登录</title>
<link href="skin/default/global.css" rel="stylesheet" type="text/css" />
<link href="skin/default/layout.css" rel="stylesheet" type="text/css" />
<style>
	html,body{overflow:hidden}	
</style>

</head>
<%
  int error = request.getParameter("error") == null ? 0 : Integer.parseInt(request.getParameter("error"));
  String msg;
  switch(error){
    case SignInFilter.ERROR_EXAMINEE:
      msg = "准考证号不存在，请核对后再试一次。";
      break;
    case SignInFilter.ERROR_TEST_DONE:
      msg = "考试时间到，或已交卷。";
      break;
    default:
      msg = "准考证号不存在，请核对后再试一次。";
  }
%>
<body class="login-body">
<%--<button type="button" id="out" onclick="window.close()"></button>--%>
<div class="login-box login-box-noraml">
	<div class="login-form test">
	<form method="post" action="<%=SignInFilter.SIGNIN_EXAMINEE%>">
    <%
      if(error != 0){
    %>
    <div class="e"><%=msg%></div>
    <%
      }
    %>
    <ul>
			<li><label for="zkzh">准考证号：</label><input class="normal" name="zkzh" type="text" id="num" autocomplete="off" /></li>
		</ul>
	<button type="submit"></button>
	</form>
	</div>
</div>
<script src="common/jquery-1.3.2.min.js"></script>
<script>
	$(function(){
		$("#num").focus()
	})
	
</script>
<script>
	$(document).keydown(function(e){//取消浏览器回退
		if(!external){
			return false;
		}
						})
</script>
</body>

</html>